import request from '/@/utils/request';


export const unUseInquireNum = (params?: any) => {
    return request({
        url: '/trip/trip/unUseInquireId',
        method: 'get',
        params
    });
};
export const selectByCondition = (params?: any) => {
    return request({
        url: '/trip/trip/selectByCondition',
        method: 'get',
        params
    });
};
export const getInquireBYId = (params?: any) => {
    return request({
        url: '/trip/trip/getInquireBYId?inquireId='+params,
        method: 'get',
    });
};
//新增行程单
export const addTrip = (data?: any) => {
    return request({
        url: '/trip/trip/addTrip',
        method: 'post',
        data: data
    })
}
//删除行程单
export const deleteTrip = (params?: any) => {
    return request({
        url: '/trip/trip/deleteTrip?tripId='+params,
        method: 'delete',
    })
}
//通过行程单id查询相应的咨询单
export const getInquireByTripId = (params?: any) => {
    return request({
        url: '/trip/trip/getInquireByTripId?tripId='+params,
        method: 'get',
    })
}
// 更新行程单金额（修正版）
export const updateTripAmount = (data?: any) => {
    return request({
        url: '/trip/trip/amount',
        method: 'put',
        data
    })
};

